package com.pd.state;

/**
 * Created with IntelliJ IDEA.
 * User: 5
 * Date: 17-2-27
 * Time: 下午2:34
 * To change this template use File | Settings | File Templates.
 */
public class Work {
    int time;
    State state;

    public Work(int time) {
        this.time = time;
        state=new Morning();
    }

    public void dowork(){
        state.writeProgram(this);
    }


    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
